package com.syl.practice.configuration.config;

import com.syl.practice.configuration.pojo.Animal;
import com.syl.practice.configuration.pojo.Book;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class MyConfig {

    @Bean
    public Book book1(){
        return new Book("浮生六记","沈复");
    }

    /*@Bean
    public Animal animal1(){
        return new Animal("猪","家禽");
    }*/
}
